/*** 
 * @Author: Colin Dai
 * @Date: 2022-05-10 14:09:46
 * @LastEditors: Colin Dai
 * @LastEditTime: 2022-05-10 14:48:57
 * @FilePath: /jy-uos/src/softbus/communication/udp/include/udp_bus_manager.h
 * @Description: 
 * @dailianzheng@163.com
 * @Copyright (c) 2022 by Colin.Dai, All Rights Reserved. 
 */
#ifndef _UDP_BUS_MANAGER_H_
#define _UDP_BUS_MANAGER_H_

#ifdef  _cplusplus
extern "C" {
#endif

int OnConnectEvent(int fd, const char *ip);
int OnDataEvent(int fd);


typedef int (*OnConnectEventProc)(int fd, const char *ip);
typedef int (*OnDataEventProc)(int fd);
typedef struct {
    OnConnectEventProc onConnectEvent;
    OnDataEventProc onDataEvent;
} BaseListener;


int Start_udp_Bus(const char *ip);
int Stop_udp_Bus(void);

#ifdef __cplusplus
}
#endif

#endif